package cn.semyes.ylipfilter.service.impl;



import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import cn.semyes.ylipfilter.dao.master.UserDao;
import cn.semyes.ylipfilter.entity.UserEntity;
import cn.semyes.ylipfilter.service.UserService;



@Service
public class UserServiceImpl implements UserService{
	
	@Autowired
	private UserDao userDao;

	/**
	 * 获取用户
	 * @param domain
	 * @return
	 */
	@Override
	public UserEntity getUser(String domain) {
		// TODO Auto-generated method stub
		return userDao.selectByDomain(domain);
	}

	/**
	 * 保存用户
	 */
	@Override
	public void saveUser(UserEntity userEntity) {
		// TODO Auto-generated method stub
		userDao.save(userEntity);;
	}

}
